package com.dk;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableEurekaClient     //开启eureka的开户端
@EnableFeignClients  //开启feign
@EnableCircuitBreaker //开启熔断降级
@EnableHystrix//开启熔断
public class CarWeb {
    public static void main(String[] args) {
        SpringApplication.run(CarWeb.class,args);
    }
}
